//封装一个函数：判断按钮是否显示与隐藏
import store from '@/store';
export default function isShow(flag){
   return store.state.user.buttons.indexOf(flag)!=-1;
}